import {Injectable} from "@angular/core";
import {services} from "../../providers/service";
@Injectable()
export class HomeServie extends services {
    getCitiesData() {
        return this.getData('./assets/data/city-data.json')
            .then(data => {
                localStorage.setItem('cityData', JSON.stringify(data));
                return data;
            }, err => {
                console.log('失败回调');
                return err;
            })
            .catch(fail => {
                console.log('异常了', fail);
            })

    }
}
